package modele;

import java.util.List;
import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Transient;
import javax.persistence.Embeddable;

import org.codehaus.jackson.annotate.JsonIgnore;

/**
 * <p>Pojo mapping TABLE articletaxe</p>
 * <p></p>
 *
 * <p>Generated at Sat Feb 26 23:34:05 CET 2011</p>
 * @author Salto-db Generator v1.0.16 / EJB3
 * 
 */
@Entity
@Table(name = "articletaxe")
@SuppressWarnings("serial")
public class Articletaxe implements Serializable {

	/**
	 * Attribute idArticletaxe.
	 */
	private Integer idArticletaxe;
	
	/**
	 * Attribute article
	 */
	 private Article article;	

	/**
	 * Attribute catcompta
	 */
	 private Catcompta catcompta;	

	/**
	 * Attribute idCompteg.
	 */
	private Integer idCompteg;
	
	/**
	 * Attribute taxe
	 */
	 private Taxe taxe;	

	 private Integer idArticle;
	 private Integer idTaxe;
	 private Integer idCatcompta;
		
	/**
	 * <p> 
	 * </p>
	 * @return idArticletaxe
	 */
	@Basic
	@Id
	@GeneratedValue
	@Column(name = "id_articletaxe")
		public Integer getIdArticletaxe() {
		return idArticletaxe;
	}

	/**
	 * @param idArticletaxe new value for idArticletaxe 
	 */
	public void setIdArticletaxe(Integer idArticletaxe) {
		this.idArticletaxe = idArticletaxe;
	}
	
	/**
	 * get article
	 */
	@ManyToOne
	@JsonIgnore
	@JoinColumn(name = "id_article",insertable=false ,updatable=false)
	public Article getArticle() {
		return this.article;
	}
	
	/**
	 * set article
	 */
	public void setArticle(Article article) {
		this.article = article;
	}

	/**
	 * get catcompta
	 */
	@ManyToOne
	@JsonIgnore
	@JoinColumn(name = "id_catcompta",insertable=false ,updatable=false)
	public Catcompta getCatcompta() {
		return this.catcompta;
	}
	
	/**
	 * set catcompta
	 */
	public void setCatcompta(Catcompta catcompta) {
		this.catcompta = catcompta;
	}

	/**
	 * <p> 
	 * </p>
	 * @return idCompteg
	 */
	@Basic
	@Column(name = "id_compteg")
	public Integer getIdCompteg() {
		return idCompteg;
	}

	/**
	 * @param idCompteg new value for idCompteg 
	 */
	public void setIdCompteg(Integer idCompteg) {
		this.idCompteg = idCompteg;
	}
	
	/**
	 * get taxe
	 */
	@ManyToOne
	@JsonIgnore
	@JoinColumn(name = "id_taxe",insertable=false ,updatable=false)
	public Taxe getTaxe() {
		return this.taxe;
	}
	
	/**
	 * set taxe
	 */
	public void setTaxe(Taxe taxe) {
		this.taxe = taxe;
	}

	public void setIdArticle(Integer idArticle) {
		this.idArticle = idArticle;
	}

	@Basic
	@Column(name = "id_article")
	public Integer getIdArticle() {
		return idArticle;
	}

	public void setIdTaxe(Integer idTaxe) {
		this.idTaxe = idTaxe;
	}

	@Basic
	@Column(name = "id_taxe")
	public Integer getIdTaxe() {
		return idTaxe;
	}

	public void setIdCatcompta(Integer idCatcompta) {
		this.idCatcompta = idCatcompta;
	}

	@Basic
	@Column(name = "id_catcompta")
	public Integer getIdCatcompta() {
		return idCatcompta;
	}



}